package com.betterjr.modules.commission.service;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.betterjr.common.service.BaseService;
import com.betterjr.common.utils.QueryTermBuilder;
import com.betterjr.mapper.pagehelper.Page;
import com.betterjr.modules.commission.dao.CommissionPayBankResultMapper;
import com.betterjr.modules.commission.entity.CommissionBusPaymentCode;

@Service
public class CommissionPayBankRecordService
        extends BaseService<CommissionPayBankResultMapper, CommissionBusPaymentCode> {

    public Page<CommissionBusPaymentCode> queryCanAuditRecordListByBankName(final String anBankName, final int anFlag,
            final int anPageNum, final int anPageSize) {
        final Map<String, Object> map = QueryTermBuilder.newInstance().put("bankName", anBankName).build();
        return this.selectPropertyByPage(map, anPageNum, anPageSize, anFlag == 1);

    }

}
